import { UPDATE_USER_INFO } from '@/constants/app';

const initialState = {
  userInfo: {}
};

const appReducer = (state = initialState, action) => {
  switch (action.type) {
    case UPDATE_USER_INFO:
      return { ...state, userInfo: action.payload };
    default:
      return state;
  }
};

export default appReducer;
